import request from '@/utils/request';
const apiUrls = {
  getProduce: '/front/home/produce',
  getFarmland: '/front/home/farmland',
  getGrain: '/front/home/grain',
  getInsect: '/front/home/insect',
  getFinance: '/front/home/finance',
  getService: '/front/home/service',
  getCenterInfo: '/front/home/center',
};
export function getProduce(data) {
  return request({
    url: `${apiUrls.getProduce}?areaCode=${data}`,
    method: 'get',
  });
}
export function getFarmland(data) {
  return request({
    url: `${apiUrls.getFarmland}?areaCode=${data}`,
    method: 'get',
  });
}

export function getGrain(data) {
  return request({
    url: `${apiUrls.getGrain}?areaCode=${data}`,
    method: 'get',
  });
}
export function getInsect(data) {
  return request({
    url: `${apiUrls.getInsect}?areaCode=${data}`,
    method: 'get',
  });
}
export function getFinance(data) {
  return request({
    url: `${apiUrls.getFinance}?areaCode=${data}`,
    method: 'get',
  });
}
export function getService(data) {
  return request({
    url: `${apiUrls.getService}?areaCode=${data}`,
    method: 'get',
  });
}
export function getCenterInfo(data) {
  return request({
    url: `${apiUrls.getCenterInfo}?areaCode=${data}`,
    method: 'get',
  });
}
